/*
*VariableManager.fx
*
*Created on Mar 31, 2011, 18:16:18 PM
*/

package mythesis.controller;

public class VariableManager {
	var arrCandidateVariables_GameStarted:String[] = [];
	var arrCandidateVariables_DecidingOnMovement:String[] = [];
	var arrCandidateVariables_MakingASuggestionOrAccusation:String[] = [];
	var arrCandidateVariables_ListeningToSuggestion:String[] = [];
	var arrCandidateVariables_DisprovingSuggestion:String[] = [];
	
	//var arrUserVariables_Number_GameStarted:String[] = ["gs_num_A", "gs_num_B"];
	//var arrUserVariables_Number_DecidingOnMovement:String[] = ["dom_num_A", "dom_num_b"];
	//var arrUserVariables_Number_MakingASuggestionOrAccusation:String[] = ["masoa_num_A", "masoa_num_B"];
	//var arrUserVariables_Number_ListeningToSuggestion:String[] = ["lts_num_A", "lts_num_B"];
	//var arrUserVariables_Number_DisprovingSuggestion:String[] = ["ds_num_A", "ds_num_B"];
	var arrUserVariables_Number_GameStarted:String[] = [];
	var arrUserVariables_Number_DecidingOnMovement:String[] = [];
	var arrUserVariables_Number_MakingASuggestionOrAccusation:String[] = [];
	var arrUserVariables_Number_ListeningToSuggestion:String[] = [];
	var arrUserVariables_Number_DisprovingSuggestion:String[] = [];
	var arrUserVariables_Number = [
		arrUserVariables_Number_GameStarted,
		arrUserVariables_Number_DecidingOnMovement,
		arrUserVariables_Number_MakingASuggestionOrAccusation,
		arrUserVariables_Number_ListeningToSuggestion,
		arrUserVariables_Number_DisprovingSuggestion
	];
	
	//var arrUserVariables_Word_GameStarted:String[] = ["gs_word_A", "gs_word_B"];
	//var arrUserVariables_Word_DecidingOnMovement:String[] = ["dom_word_A", "dom_word_b"];
	//var arrUserVariables_Word_MakingASuggestionOrAccusation:String[] = ["masoa_word_A", "masoa_word_B"];
	//var arrUserVariables_Word_ListeningToSuggestion:String[] = ["lts_word_A", "lts_word_B"];
	//var arrUserVariables_Word_DisprovingSuggestion:String[] = ["ds_word_A", "ds_word_B"];
	var arrUserVariables_Word_GameStarted:String[] = [];
	var arrUserVariables_Word_DecidingOnMovement:String[] = [];
	var arrUserVariables_Word_MakingASuggestionOrAccusation:String[] = [];
	var arrUserVariables_Word_ListeningToSuggestion:String[] = [];
	var arrUserVariables_Word_DisprovingSuggestion:String[] = [];
	var arrUserVariables_Word = [
		arrUserVariables_Word_GameStarted,
		arrUserVariables_Word_DecidingOnMovement,
		arrUserVariables_Word_MakingASuggestionOrAccusation,
		arrUserVariables_Word_ListeningToSuggestion,
		arrUserVariables_Word_DisprovingSuggestion
	];
	
	//var arrUserVariables_Truth_GameStarted:String[] = ["gs_truth_A", "gs_truth_B"];
	//var arrUserVariables_Truth_DecidingOnMovement:String[] = ["dom_truth_A", "dom_truth_b"];
	//var arrUserVariables_Truth_MakingASuggestionOrAccusation:String[] = ["masoa_truth_A", "masoa_truth_B"];
	//var arrUserVariables_Truth_ListeningToSuggestion:String[] = ["lts_truth_A", "lts_truth_B"];
	//var arrUserVariables_Truth_DisprovingSuggestion:String[] = ["ds_truth_A", "ds_truth_B"];
	var arrUserVariables_Truth_GameStarted:String[] = [];
	var arrUserVariables_Truth_DecidingOnMovement:String[] = [];
	var arrUserVariables_Truth_MakingASuggestionOrAccusation:String[] = [];
	var arrUserVariables_Truth_ListeningToSuggestion:String[] = [];
	var arrUserVariables_Truth_DisprovingSuggestion:String[] = [];
	var arrUserVariables_Truth = [
		arrUserVariables_Truth_GameStarted,
		arrUserVariables_Truth_DecidingOnMovement,
		arrUserVariables_Truth_MakingASuggestionOrAccusation,
		arrUserVariables_Truth_ListeningToSuggestion,
		arrUserVariables_Truth_DisprovingSuggestion
	];
	
	var arrSpecialVariables_Number_DecidingOnMovement:String[] = ["allowedMoves"];

	public function setUserVariables_Number(etype:String, list:String[])
	{
	    if (etype=="GameStarted")
	    {
			arrUserVariables_Number_GameStarted = list;
	    }
	    else if (etype=="DecidingOnMovement")
	    {
	        arrUserVariables_Number_DecidingOnMovement = list;
	    }
	    else if (etype=="MakingASuggestionOrAccusation")
	    {
	        arrUserVariables_Number_MakingASuggestionOrAccusation = list;
	    }
	    else if (etype=="ListeningToSuggestion")
	    {
	        arrUserVariables_Number_ListeningToSuggestion = list;
	    }
	    else if (etype=="DisprovingSuggestion")
	    {
	        arrUserVariables_Number_DisprovingSuggestion = list;
	    }
	    return ["[VariableManager] setUserNum unknown etype"];
	}
	
	public function getUserVariables_Number(etype:String):String[]
	{
	    if (etype=="GameStarted")
	    {
			return arrUserVariables_Number_GameStarted;
	    }
	    else if (etype=="DecidingOnMovement")
	    {
	        return arrUserVariables_Number_DecidingOnMovement;
	    }
	    else if (etype=="MakingASuggestionOrAccusation")
	    {
	        return arrUserVariables_Number_MakingASuggestionOrAccusation;
	    }
	    else if (etype=="ListeningToSuggestion")
	    {
	        return arrUserVariables_Number_ListeningToSuggestion;
	    }
	    else if (etype=="DisprovingSuggestion")
	    {
	        return arrUserVariables_Number_DisprovingSuggestion;
	    }
	    return ["[VariableManager] getUserNum unknown etype"];
	}
	
	public function setUserVariables_Word(etype:String, list:String[])
	{
	    if (etype=="GameStarted")
	    {
			arrUserVariables_Word_GameStarted = list;
	    }
	    else if (etype=="DecidingOnMovement")
	    {
	        arrUserVariables_Word_DecidingOnMovement = list;
	    }
	    else if (etype=="MakingASuggestionOrAccusation")
	    {
	        arrUserVariables_Word_MakingASuggestionOrAccusation = list;
	    }
	    else if (etype=="ListeningToSuggestion")
	    {
	        arrUserVariables_Word_ListeningToSuggestion = list;
	    }
	    else if (etype=="DisprovingSuggestion")
	    {
	        arrUserVariables_Word_DisprovingSuggestion = list;
	    }
	    return ["[VariableManager] setUserNum unknown etype"];
	}

	public function getUserVariables_Word(etype:String):String[]
	{
	    if (etype=="GameStarted")
	    {
			return arrUserVariables_Word_GameStarted;
	    }
	    else if (etype=="DecidingOnMovement")
	    {
	        return arrUserVariables_Word_DecidingOnMovement;
	    }
	    else if (etype=="MakingASuggestionOrAccusation")
	    {
	        return arrUserVariables_Word_MakingASuggestionOrAccusation;
	    }
	    else if (etype=="ListeningToSuggestion")
	    {
	        return arrUserVariables_Word_ListeningToSuggestion;
	    }
	    else if (etype=="DisprovingSuggestion")
	    {
	        return arrUserVariables_Word_DisprovingSuggestion;
	    }
	    return ["[VariableManager] getUserWord unknown etype"];
	}
	
	public function setUserVariables_Truth(etype:String, list:String[])
	{
	    if (etype=="GameStarted")
	    {
			arrUserVariables_Truth_GameStarted = list;
	    }
	    else if (etype=="DecidingOnMovement")
	    {
	        arrUserVariables_Truth_DecidingOnMovement = list;
	    }
	    else if (etype=="MakingASuggestionOrAccusation")
	    {
	        arrUserVariables_Truth_MakingASuggestionOrAccusation = list;
	    }
	    else if (etype=="ListeningToSuggestion")
	    {
	        arrUserVariables_Truth_ListeningToSuggestion = list;
	    }
	    else if (etype=="DisprovingSuggestion")
	    {
	        arrUserVariables_Truth_DisprovingSuggestion = list;
	    }
	    return ["[VariableManager] setUserNum unknown etype"];
	}
	
	public function getUserVariables_Truth(etype:String):String[]
	{
	    if (etype=="GameStarted")
	    {
			return arrUserVariables_Truth_GameStarted;
	    }
	    else if (etype=="DecidingOnMovement")
	    {
	        return arrUserVariables_Truth_DecidingOnMovement;
	    }
	    else if (etype=="MakingASuggestionOrAccusation")
	    {
	        return arrUserVariables_Truth_MakingASuggestionOrAccusation;
	    }
	    else if (etype=="ListeningToSuggestion")
	    {
	        return arrUserVariables_Truth_ListeningToSuggestion;
	    }
	    else if (etype=="DisprovingSuggestion")
	    {
	        return arrUserVariables_Truth_DisprovingSuggestion;
	    }
	    return ["[VariableManager] getUserTruth unknown etype"];
	}
	
	public function setCandidateVariables(etype:String, list:String[])
	{
	    if (etype=="GameStarted")
	    {
			arrCandidateVariables_GameStarted = list;
	    }
	    else if (etype=="DecidingOnMovement")
	    {
	        arrCandidateVariables_DecidingOnMovement = list;
	    }
	    else if (etype=="MakingASuggestionOrAccusation")
	    {
	        arrCandidateVariables_MakingASuggestionOrAccusation = list;
	    }
	    else if (etype=="ListeningToSuggestion")
	    {
	        arrCandidateVariables_ListeningToSuggestion = list;
	    }
	    else if (etype=="DisprovingSuggestion")
	    {
	        arrCandidateVariables_DisprovingSuggestion = list;
	    }
	    return ["[VariableManager] setUserNum unknown etype"];
	}
	
	public function getCandidateVariables(etype:String):String[]
	{
	    if (etype=="GameStarted")
	    {
			return arrCandidateVariables_GameStarted;
	    }
	    else if (etype=="DecidingOnMovement")
	    {
	        return arrCandidateVariables_DecidingOnMovement;
	    }
	    else if (etype=="MakingASuggestionOrAccusation")
	    {
	        return arrCandidateVariables_MakingASuggestionOrAccusation;
	    }
	    else if (etype=="ListeningToSuggestion")
	    {
	        return arrCandidateVariables_ListeningToSuggestion;
	    }
	    else if (etype=="DisprovingSuggestion")
	    {
	        return arrCandidateVariables_DisprovingSuggestion;
	    }
	    return ["[VariableManager] getCandidate unknown etype"];
	}

	public function isVarNameCandidate(vname:String, page:Number):Boolean
	{
	    //var page = editorPanel.page;
		if (page==0)
		{
			for (i in [0..arrCandidateVariables_GameStarted.size()])
		    {
		        if (arrCandidateVariables_GameStarted[i] == vname){ return true; }
		    }
		}
		else if (page==1)
		{
			for (i in [0..arrCandidateVariables_DecidingOnMovement.size()])
		    {
		        if (arrCandidateVariables_DecidingOnMovement[i] == vname){ return true; }
		    }
		}
		else if (page==2)
		{
			for (i in [0..arrCandidateVariables_MakingASuggestionOrAccusation.size()])
		    {
		        if (arrCandidateVariables_MakingASuggestionOrAccusation[i] == vname){ return true; }
		    }
		}
		else if (page==3)
		{
			for (i in [0..arrCandidateVariables_ListeningToSuggestion.size()])
		    {
		        if (arrCandidateVariables_ListeningToSuggestion[i] == vname){ return true; }
		    }
		}
		else if (page==4)
		{
			for (i in [0..arrCandidateVariables_DisprovingSuggestion.size()])
		    {
		        if (arrCandidateVariables_DisprovingSuggestion[i] == vname){ return true; }
		    }
		}
	    
	    //for (i in [0..listCandidateVariables.size()])
	    //{
	    //    if (listCandidateVariables[i] == vname){ return true; }
	    //}
		return false;
	}
	
	public function addUserVariable(vname:String, vtype:String, page:Number)
	{
	    var exists = false;
	    //var page   = editorPanel.page;
	    // Check each list if variable exists.
	    // If it doesn't exist, insert to appropriate list.
	    
	    if (vtype == "Number")
	    {
	        //println("Type NUMBER");
	        var s:String[];
	        if (page==0){ s = arrUserVariables_Number_GameStarted; }
	        if (page==1){ s = arrUserVariables_Number_DecidingOnMovement; }
	        if (page==2){ s = arrUserVariables_Number_MakingASuggestionOrAccusation; }
	        if (page==3){ s = arrUserVariables_Number_ListeningToSuggestion; }
	        if (page==4){ s = arrUserVariables_Number_DisprovingSuggestion; }
	        //var s:String[] = arrUserVariables_Number[page];
		    for (i in [0..s.size()])
		    {
		        if (s[i] == vname){ exists = true; }
		    }
		    if (exists == false)
		    {
		        //println("attempting to insert");
				//insert vname into s;
		        if (page==0){ insert vname into arrUserVariables_Number_GameStarted; }
		        if (page==1){ insert vname into arrUserVariables_Number_DecidingOnMovement; }
		        if (page==2){ insert vname into arrUserVariables_Number_MakingASuggestionOrAccusation; }
		        if (page==3){ insert vname into arrUserVariables_Number_ListeningToSuggestion; }
		        if (page==4){ insert vname into arrUserVariables_Number_DisprovingSuggestion; }
				//println(" added {vname} to page {page}");
				//println(" now: {arrUserVariables_Number_GameStarted}");
		    }
		}
		else if (vtype == "Word")
		{
		    var s:String[];// = arrUserVariables_Word[page];
		    for (i in [0..s.size()])
		    {
		        if (s[i] == vname){ exists = true; }
		    }
			if (exists == false)
		    {
				//insert vname into s;
		        if (page==0){ insert vname into arrUserVariables_Word_GameStarted; }
		        if (page==1){ insert vname into arrUserVariables_Word_DecidingOnMovement; }
		        if (page==2){ insert vname into arrUserVariables_Word_MakingASuggestionOrAccusation; }
		        if (page==3){ insert vname into arrUserVariables_Word_ListeningToSuggestion; }
		        if (page==4){ insert vname into arrUserVariables_Word_DisprovingSuggestion; }
		    }
		}
		else if (vtype == "Truth")
		{
		    var s:String[];// = arrUserVariables_Word[page];
		    for (i in [0..s.size()])
		    {
		        if (s[i] == vname){ exists = true; }
		    }
		    if (exists == false)
		    {
				//insert vname into s;
		        if (page==0){ insert vname into arrUserVariables_Truth_GameStarted; }
		        if (page==1){ insert vname into arrUserVariables_Truth_DecidingOnMovement; }
		        if (page==2){ insert vname into arrUserVariables_Truth_MakingASuggestionOrAccusation; }
		        if (page==3){ insert vname into arrUserVariables_Truth_ListeningToSuggestion; }
		        if (page==4){ insert vname into arrUserVariables_Truth_DisprovingSuggestion; }
		    }
		}
	}
	public function delUserVariable(vname:String, page:Number)
	{
	    //find and delete from candidates and lists
	    var s:String[];
	    //var page = editorPanel.page;
		if (page==0){ s = arrCandidateVariables_GameStarted; }
		else if (page==1){ s = arrCandidateVariables_DecidingOnMovement; }
		else if (page==2){ s = arrCandidateVariables_MakingASuggestionOrAccusation; }
		else if (page==3){ s = arrCandidateVariables_ListeningToSuggestion; }
		else if (page==4){ s = arrCandidateVariables_DisprovingSuggestion; }
	    for (i in [0..s.size()])
	    {
	        if (s[i] == vname){ delete s[i]; }
	    }
	
		//find and delete from number    
		if (page==0){ s = arrUserVariables_Number_GameStarted; }
		else if (page==1){ s = arrUserVariables_Number_DecidingOnMovement; }
		else if (page==2){ s = arrUserVariables_Number_MakingASuggestionOrAccusation; }
		else if (page==3){ s = arrUserVariables_Number_ListeningToSuggestion; }
		else if (page==4){ s = arrUserVariables_Number_DisprovingSuggestion; }
	    for (i in [0..s.size()])
	    {
	        if (s[i] == vname){ delete s[i]; }
	    }
	    
	    //find and delete from word
		if (page==0){ s = arrUserVariables_Word_GameStarted; }
		else if (page==1){ s = arrUserVariables_Word_DecidingOnMovement; }
		else if (page==2){ s = arrUserVariables_Word_MakingASuggestionOrAccusation; }
		else if (page==3){ s = arrUserVariables_Word_ListeningToSuggestion; }
		else if (page==4){ s = arrUserVariables_Word_DisprovingSuggestion; }
	    for (i in [0..s.size()])
	    {
	        if (s[i] == vname){ delete s[i]; }
	    }
	    
	    //find and delete from truth
		if (page==0){ s = arrUserVariables_Truth_GameStarted; }
		else if (page==1){ s = arrUserVariables_Truth_DecidingOnMovement; }
		else if (page==2){ s = arrUserVariables_Truth_MakingASuggestionOrAccusation; }
		else if (page==3){ s = arrUserVariables_Truth_ListeningToSuggestion; }
		else if (page==4){ s = arrUserVariables_Truth_DisprovingSuggestion; }
	    for (i in [0..s.size()])
	    {
	        if (s[i] == vname){ delete s[i]; }
	    }
	}
	
	public function addCandidateVariable(s:String, page:Number)
	{
		//var page = editorPanel.page;
		if (page==0)
		{
			insert s into arrCandidateVariables_GameStarted;
		}
		else if (page==1)
		{
		    insert s into arrCandidateVariables_DecidingOnMovement;
		}
		else if (page==2)
		{
		    insert s into arrCandidateVariables_MakingASuggestionOrAccusation;
		}
		else if (page==3)
		{
		    insert s into arrCandidateVariables_ListeningToSuggestion;
		}
		else if (page==4)
		{
		    insert s into arrCandidateVariables_DisprovingSuggestion;
		}
	}
	
	public function getIpVarList(type:String, page:Number):String[]
	{
	    //var page=editorPanel.page;
	    var seq:String[];
	    if(type == "Number")
	    {
			seq = arrUserVariables_Number_GameStarted;
			if (page==1){
			    insert arrUserVariables_Number_DecidingOnMovement into seq;
			    //insert arrSpecialVariables_Number_DecidingOnMovement into seq;
				}
			else if (page==2){
			    insert arrUserVariables_Number_MakingASuggestionOrAccusation into seq;
			    }
			else if (page==3){
			    insert arrUserVariables_Number_ListeningToSuggestion into seq;
			    }
			else if (page==4){
			    insert arrUserVariables_Number_DisprovingSuggestion into seq;
			    }
	    }
	    else if (type == "Word")
		{
			seq = arrUserVariables_Word_GameStarted;
			if (page==1){
			    insert arrUserVariables_Word_DecidingOnMovement into seq;
				}
			else if (page==2){
			    insert arrUserVariables_Word_MakingASuggestionOrAccusation into seq;
			    }
			else if (page==3){
			    insert arrUserVariables_Word_ListeningToSuggestion into seq;
			    }
			else if (page==4){
			    insert arrUserVariables_Word_DisprovingSuggestion into seq;
			    }
		}
	    else if (type == "Truth")
	    {
			seq = arrUserVariables_Truth_GameStarted;
			if (page==1){
			    insert arrUserVariables_Truth_DecidingOnMovement into seq;
				}
			else if (page==2){
			    insert arrUserVariables_Truth_MakingASuggestionOrAccusation into seq;
			    }
			else if (page==3){
			    insert arrUserVariables_Truth_ListeningToSuggestion into seq;
			    }
			else if (page==4){
			    insert arrUserVariables_Truth_DisprovingSuggestion into seq;
			    }
	    }
	    return seq;
	}
	
	public function getBonusVars(type:String, page:Number):String[]
	{
	    var seq:String[];
	    if(type == "Number")
	    {
			if (page==1){
			    insert "allowedMoves" into seq;
			    }
			else if (page==2){
			    
			    }
			else if (page==3){
			    
			    }
			else if (page==4){
			    
			    }
	    }
	    else if (type == "Word")
		{
			if (page==1){
			    
				}
			else if (page==2){
			    //insert arrUserVariables_Word_MakingASuggestionOrAccusation into seq;
			    insert "disproofCard" into seq;
			    insert "disproofPerson" into seq;
			    }
			else if (page==3){
			    insert "suggester" into seq;
			    insert "disprover" into seq;
			    insert "suggestedSuspect" into seq;
			    insert "suggestedWeapon" into seq;
			    insert "suggestedRoom" into seq;
			    }
			else if (page==4){
			    insert "suggestedSuspect" into seq;
			    insert "suggestedWeapon" into seq;
			    insert "suggestedRoom" into seq;
			    }
		}
	    else if (type == "Truth")
	    {
			if (page==1){
			    insert "canReachHall()" into seq;
			    insert "canReachConservatory()" into seq;
			    insert "canReachStudy()" into seq;
			    insert "canReachBilliardRoom()" into seq;
			    insert "canReachLibrary()" into seq;
			    insert "canReachBallroom()" into seq;
			    insert "canReachLounge()" into seq;
			    insert "canReachKitchen()" into seq;
			    insert "canReachDiningRoom()" into seq;
				}
			else if (page==2){
			    }
			else if (page==3){
			    insert "disproved" into seq;
			    }
			else if (page==4){
			    }
	    }
	    else if (type == "SuggestAccuseRoom")
	    {
            seq = [
				"Hall",
				"Conservatory",
				"Study",
				"BilliardRoom",
				"Library",
				"Ballroom",
				"Lounge",
				"Kitchen",
				"DiningRoom",

            ];
	    }
	    else if (type == "SuggestAccuseSuspect")
	    {
	        seq = [
	    		"MrsWhite",
				"MissScarlett",
				"ReverendGreen",
				"ColonelMustard",
				"MrsPeacock",
				"ProfessorPlum",
	        ];
	    }
	    else if (type == "SuggestAccuseWeapon")
	    {
	        seq = [
				"Rope",
				"Dagger",
				"Spanner",
				"Revolver",
				"LeadPipe",
				"Candlestick",
	        ];
	    }
		else if (type == "SuspectList")
	    {
	        seq = [
	    		"MrsWhite",
				"MissScarlett",
				"ReverendGreen",
				"ColonelMustard",
				"MrsPeacock",
				"ProfessorPlum",
	        ];
	    }
	    else if (type == "WeaponList")
	    {
	        seq = [
				"Rope",
				"Dagger",
				"Spanner",
				"Revolver",
				"LeadPipe",
				"Candlestick",
	        ];
	    }
	    else if (type == "RoomList")
	    {
	        seq = [
				"Hall",
				"Conservatory",
				"Study",
				"BilliardRoom",
				"Library",
				"Ballroom",
				"Lounge",
				"Kitchen",
				"DiningRoom",
			];
	    }
	    else if (type == "HaveSuggested")
	    {
	        seq = [
	        	"iHaveSugSusp()",
				"iHaveSugWeap()",
				"iHaveSugRoom()",
				
			];
	    }
	    else if (type == "MyCards")
	    {
	        seq = [
	        	"card1",
	        	"card2",
	        	"card3",
	        	"card4",
	        	"card5",
	        	"card6",
			];
	    }
	    else if (type == "RoomFuncs_Word")
	    {
	        seq = [
	        	"getRoomImInside()",
	        ];
	    }
	    else if (type == "RoomFuncs_GetRoom_Word")
	    {
	        seq = [
	        	"getNearestRoom()",
	        	"getNearestInnoRoom()",
	        	"getNearestForeignInnoRoom()"
	        ];
	    }
	    else if (type == "RoomFuncs_Truth")
	    {
	        seq = [
	        	"isInsideRoom()"
	        ];
	    }
	    else if (type == "GetRandCard")
	    {
	        seq = [
	        	"getARandInnoSusp()",
	        	"getARandInnoWeap()"
	        ];
	    }
	    else if (type == "DetectivePad")
	    {
	        seq = [
				"dpHall",
				"dpConservatory",
				"dpStudy",
				"dpBilliardRoom",
				"dpLibrary",
				"dpBallroom",
				"dpLounge",
				"dpKitchen",
				"dpDiningRoom",
				
				"dpMrsWhite",
				"dpMissScarlett",
				"dpReverendGreen",
				"dpColonelMustard",
				"dpMrsPeacock",
				"dpProfessorPlum",
				
				"dpRope",
				"dpDagger",
				"dpSpanner",
				"dpRevolver",
				"dpLeadPipe",
				"dpCandlestick",
	        ];
	    }
	    else if (type == "CheckSugElim")
	    {
	        seq = [
	        	"iElimSugSusp()",
	        	"iElimSugWeap()",
	        	"iElimSugRoom()"
	        ];
	    }
	    else if (type == "HaveCard")
	    {
	        seq = [
				"iHaveHall()",
				"iHaveConservatory()",
				"iHaveStudy()",
				"iHaveBilliardRoom()",
				"iHaveLibrary()",
				"iHaveBallroom()",
				"iHaveLounge()",
				"iHaveKitchen()",
				"iHaveDiningRoom()",
				"iHaveMrsWhite()",
				"iHaveMissScarlett()",
				"iHaveReverendGreen()",
				"iHaveColonelMustard()",
				"iHaveMrsPeacock()",
				"iHaveProfessorPlum()",
				"iHaveRope()",
				"iHaveDagger()",
				"iHaveSpanner()",
				"iHaveRevolver()",
				"iHaveLeadPipe()",
				"iHaveCandlestick()",
	        ];
	    }
	    return seq;
	}
};

